<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
<div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('流水号')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="instancecode"  class="form-control" name="row[instancecode]" type="text" value="{$serial_no}" readonly>
        </div>
    </div>
    {if $fieldList.title.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8 ">
            <input id="c-title" data-rule="required" class="form-control" name="row[title]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.amount.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Amount')}:</label>
        <div class="col-xs-12 col-sm-8 ">
            <input id="c-amount" data-rule="required" class="form-control" name="row[amount]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.items.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Items')}:</label>
        <div class="col-xs-12 col-sm-8 ">
            <input id="c-items" data-rule="required" class="form-control" name="row[items]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.Payee.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Payee')}:</label>
        <div class="col-xs-12 col-sm-8 ">
            <input id="c-Payee" data-rule="required" class="form-control" name="row[Payee]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.PayAccountNumber.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Payaccountnumber')}:</label>
        <div class="col-xs-12 col-sm-8 ">
            <input id="c-PayAccountNumber" data-rule="required" class="form-control" name="row[PayAccountNumber]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.openBank.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Openbank')}:</label>
        <div class="col-xs-12 col-sm-8 ">
            <input id="c-openBank" data-rule="required" class="form-control" name="row[openBank]" type="text" value="">
        </div>
    </div>
    {/if}
    {if $fieldList.begindate.read==1}
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Begindate')}:</label>
        <div class="col-xs-12 col-sm-8 ">
            <input id="c-begindate" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[begindate]" type="text" value="{:date('Y-m-d H:i:s')}">
        </div>
    </div>
    {/if}
    <div class="form-group layer-footer">
        <div class="col-xs-12 col-sm-12" style="text-align: center;">
            <button id='save' type="button" class="btn btn-success btn-embossed">保存</button>
            <button id='add' type="submit" class="btn btn-info btn-embossed">提交</button>
            <button type="button" id='flowchart' class="btn btn-warning btn-embossed">{:__('流程图')}</button>
        </div>
    </div>
</form>
